﻿using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace TradeHelp.MaterializedObjectViews
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ViewData<T> : ReadOnlyCollection<T>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="list"></param>
        /// <param name="viewVersion"></param>
        public ViewData(IList<T> list, int viewVersion)
            : base(list)
        {
            ViewVersion = viewVersion;
        }

        /// <summary>
        /// 
        /// </summary>
        public int ViewVersion { get; private set; }
    }
}
